package com.book.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wx
 * @since 2023-10-16 09:39:27
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("consumer_record")
public class ConsumerRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 支付金额
     */
    @TableField("consumer_fee")
    private BigDecimal consumerFee;

    /**
     * 读者id
     */
    @TableField("reader_id")
    private Long readerId;

    /**
     * 交易备注
     */
    @TableField("consumer_remark")
    private String consumerRemark;

    /**
     * 1.支付宝 2.微信
     */
    @TableField("pay_way")
    private Integer payWay;


    public static final String ID = "id";

    public static final String CONSUMER_FEE = "consumer_fee";

    public static final String READER_ID = "reader_id";

    public static final String CONSUMER_REMARK = "consumer_remark";

    public static final String PAY_WAY = "pay_way";

}
